
public class Hello{
   public static void main(String args[]){
      System.out.println("Welcome Java");
      Student stu=new Student();
      stu.speak("We are Students");
   }
}

class Student{
    public void speak(String s){
      System.out.println(s);
    }
}
